using System.Linq;
using UnityEngine;


[CreateAssetMenu(fileName = "Condition03-己方棋子的数量有没有大于等于个数", menuName = "Skill/Condition/Condition03-己方棋子的数量有没有大于等于个数", order = 3)]
public class Condition03 : ConditionBase
{
    public int count;
    
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        return ChessManager.GetInstance().chessList.Count(currentChess => currentChess.GetChessSide() == pair.Chess.GetChessSide()) >= count;
    }
    
}